.textarea {
  box-sizing: border-box;
  border-radius: 5px;
  transition: border 0.2s linear;
  border: 1px solid #c9c9c9;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  &-del {
    position: absolute;
    bottom: 4px;
    color: $font-color-qian;
    font-size: 16px;
    right: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    &:hover {
      opacity: 1;
    }
  }

  &:hover {
    border: 1px solid #4096ff;
  }
  &-header {
    background-color: #fff;
    padding: 0 12px;
    border-radius: 5px 5px 0 0;
    min-height: 8px;
  }
  &-dom {
    border-radius: 0 0 5px 5px;
    box-sizing: border-box;
    border: none;
    padding: 0px 12px 8px 12px;
    width: 100%;
    height: 100%;
    resize: none;
  }
  &-message {
    height: 20px;
    color: $error-color;
    font-size: 14px;
    position: absolute;
    bottom: -23px;
  }
}

.textarea-dom::placeholder {
  color: #afafaf;
}

.textarea-border-active {
  border: 1px solid #4096ff;
}

.textarea-border-error {
  border: 1px solid $error-color !important;
}

.textarea-disabled {
  background-color: $input-disabled;
  border: none;
  &:hover {
    border: none;
  }
}
